package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.CustomerPlan;
import cn.wolfcode.crm.query.CustomerPlanQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerPlanMapper {

    int deleteByPrimaryKey(Long id);

    int insert(CustomerPlan entity);

    CustomerPlan selectByPrimaryKey(Long id);

    List<CustomerPlan> selectAll();

    int updateByPrimaryKey(CustomerPlan entity);

    int queryForCount(CustomerPlanQueryObject qo);

    List<CustomerPlan> queryForList(CustomerPlanQueryObject qo);

    void updateResultById(@Param("id") Long id, @Param("result") Integer result);
}